package zust.se.ssm.service;

import zust.se.ssm.model.Contacts;

import java.util.List;

/**
 * @author czg
 * @since 2022/12/14 15:25
 */
public interface ContactsServiceI {
    public Contacts getById(int id);
    public List<Contacts> getAll();

    List<Contacts> searchByName(String name);
    List<Contacts> searchByName(String name,int userId);

    void updateContacts(Contacts contacts);

    void delContacts(int id);

    void addContacts(Contacts contacts);

    List<Contacts> getUserContacts(int userId);
}
